import request from "/@/utils/request"

// 查询公共账号图文列表
export function listImagetext(query) {
  return request({
    url: '/system/imagetext/list',
    method: 'get',
    params: query
  })
}

// 查询公共账号图文详细
export function getImagetext(id) {
  return request({
    url: '/system/imagetext/' + id,
    method: 'get'
  })
}

// 新增公共账号图文
export function addImagetext(data) {
  return request({
    url: '/system/imagetext',
    method: 'post',
    data: data
  })
}

// 批量新增公共账号图文
export function batchAddImagetext(data) {
  return request({
    url: '/system/imagetext/batchAdd',
    method: 'post',
    data: data
  })
}

// 修改公共账号图文
export function updateImagetext(data) {
  return request({
    url: '/system/imagetext',
    method: 'put',
    data: data
  })
}

// 删除公共账号图文
export function delImagetext(id) {
  return request({
    url: '/system/imagetext/' + id,
    method: 'delete'
  })
}
